package com.lili.pojo;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.*;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @TableName tbl_exam_record
 */
@Data
@TableName("tbl_exam_record")
public class ExamRecord implements Serializable {
    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 试卷id
     */
    @TableField("exam_id")
    private Integer examId;

    /**
     * 总分
     */
    @TableField("total_score")
    private Double totalScore;

    /**
     * 用时，单位：秒
     */
    @TableField("do_time")
    private Integer doTime;

    /**
     *
     */
    @TableField("create_user")
    private Integer createUser;

    /**
     *
     */
    @ApiModelProperty("交卷时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 是否被批改：0：未批改 1：已批改
     */
    @TableField("iscorrected")
    private Integer iscorrected;

    private static final long serialVersionUID = 1L;
}